package com.zz.parkingsystem.entity;

import java.io.Serializable;
import lombok.Data;

/**
 * 车牌类型表
 * @TableName t_car_licenseType
 */
@Data
public class CarLicensetype implements Serializable {
    /**
     * 车牌号id
     */
    private Integer clId;

    /**
     * 车牌类型：0：蓝,1:黄,2,黑,3:绿,4,白
     */
    private Integer clLicenseType;

    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        CarLicensetype other = (CarLicensetype) that;
        return (this.getClId() == null ? other.getClId() == null : this.getClId().equals(other.getClId()))
            && (this.getClLicenseType() == null ? other.getClLicenseType() == null : this.getClLicenseType().equals(other.getClLicenseType()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getClId() == null) ? 0 : getClId().hashCode());
        result = prime * result + ((getClLicenseType() == null) ? 0 : getClLicenseType().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", clId=").append(clId);
        sb.append(", clLicenseType=").append(clLicenseType);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}